<!--
 * @Author: liyin 2179253556@qq.com
 * @Date: 2025-08-22 10:28:55
 * @LastEditors: liyin 2179253556@qq.com
 * @LastEditTime: 2025-10-13 10:40:04
 * @FilePath: \register-pay-screen\src\components\Common\Title.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="title-components-box" :class="props.isbig ? 'bigBg' : ''">
        <div class="title">
            <slot name="title"></slot>
        </div>
        <div class="labelInfo">
            <slot name="info"></slot>
        </div>
    </div>
</template>
<script lang="ts" setup>
interface PropsType {
    isbig?: boolean
}
const props = withDefaults(defineProps<PropsType>(), {
    isbig: false
})
</script>
<style lang="scss" scoped>
.title-components-box {
    width: 100%;
    height: 42px;
    background-image: url('@/assets/images/title.png');
    background-size: 100% 100%;
    padding-left: 36px;
    padding-right:10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;

    .title {
        font-size: 18px;
        color: #FFFFFF;
        font-weight: 500;
        flex: 1;
    }
}

.bigBg {
    background-image: url('@/assets/images/title2.png');
}
</style>
<style lang="scss">
.labelInfo {
    font-weight: 500;
    font-size: 14px;
    color: #00FCFF;
    

    span {
        align-items: center;
        display: inline-flex;
        margin-left: 10px;
        color: #D6D6D6;
        cursor: pointer;
    }
    span.active{
        color: #00FCFF;
    }
}
</style>